<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>3dchess: DebugTools Namespace Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">3dchess
   </div>
   <div id="projectbrief">Basic chess application with OpenGL graphics and AI</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="namespaces.html"><span>Namespace&#160;List</span></a></li>
      <li><a href="namespacemembers.html"><span>Namespace&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">DebugTools Namespace Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Contains functions for helping with debugging tasks.  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:adbd8a6c748bf9707de55083aada154fa"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adbd8a6c748bf9707de55083aada154fa"></a>
string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_debug_tools.html#adbd8a6c748bf9707de55083aada154fa">toInitializerList</a> (const std::array&lt; <a class="el" href="struct_piece.html">Piece</a>, 64 &gt; &amp;board)</td></tr>
<tr class="memdesc:adbd8a6c748bf9707de55083aada154fa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the code needed to initialize a board to the given state. <br/></td></tr>
<tr class="separator:adbd8a6c748bf9707de55083aada154fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a54040479d75d0dffab7aa35745f3cf23"><td class="memTemplParams" colspan="2">template&lt;typename Rng &gt; </td></tr>
<tr class="memitem:a54040479d75d0dffab7aa35745f3cf23"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="class_game_state.html">GameState</a>&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespace_debug_tools.html#a54040479d75d0dffab7aa35745f3cf23">generateRandomState</a> (size_t maxTurns, Rng &amp;rng)</td></tr>
<tr class="memdesc:a54040479d75d0dffab7aa35745f3cf23"><td class="mdescLeft">&#160;</td><td class="mdescRight">Generates a random <a class="el" href="class_game_state.html" title="Facade class for the game logic, holds the chessboard and the turn generator. ">GameState</a>.  <a href="#a54040479d75d0dffab7aa35745f3cf23">More...</a><br/></td></tr>
<tr class="separator:a54040479d75d0dffab7aa35745f3cf23"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a989b701046c98633306452a8c710a524"><td class="memTemplParams" colspan="2">template&lt;typename Rng &gt; </td></tr>
<tr class="memitem:a989b701046c98633306452a8c710a524"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="class_chess_board.html">ChessBoard</a>&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespace_debug_tools.html#a989b701046c98633306452a8c710a524">generateRandomBoard</a> (size_t maxTurns, Rng &amp;rng)</td></tr>
<tr class="memdesc:a989b701046c98633306452a8c710a524"><td class="mdescLeft">&#160;</td><td class="mdescRight">Generates a random Board.  <a href="#a989b701046c98633306452a8c710a524">More...</a><br/></td></tr>
<tr class="separator:a989b701046c98633306452a8c710a524"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Contains functions for helping with debugging tasks. </p>
</div><h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a989b701046c98633306452a8c710a524"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Rng &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_chess_board.html">ChessBoard</a> DebugTools::generateRandomBoard </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>maxTurns</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Rng &amp;&#160;</td>
          <td class="paramname"><em>rng</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Generates a random Board. </p>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="namespace_debug_tools.html#a54040479d75d0dffab7aa35745f3cf23" title="Generates a random GameState. ">generateRandomState</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a54040479d75d0dffab7aa35745f3cf23"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename Rng &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_game_state.html">GameState</a> DebugTools::generateRandomState </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>maxTurns</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Rng &amp;&#160;</td>
          <td class="paramname"><em>rng</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Generates a random <a class="el" href="class_game_state.html" title="Facade class for the game logic, holds the chessboard and the turn generator. ">GameState</a>. </p>
<p>Emulating a games a game with up to maxTurns random moves. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">maxTurns</td><td>Limit for number of moves. </td></tr>
    <tr><td class="paramname">rng</td><td>C++ Random number generator to use. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Mar 9 2014 23:13:01 for 3dchess by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>
